package along.com.myboxugu.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import org.xutils.x;

import along.com.myboxugu.R;

public class CourseDetailActivity extends AppCompatActivity {
 private ImageView mImg;
 private TextView mdes;
    String videourl;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_course_detail);
        mImg = (ImageView) findViewById(R.id.img);
        String url =getIntent().getStringExtra("imgurl");
        x.image().bind(mImg,url);

        mdes = (TextView) findViewById(R.id.ttt);
        String des = getIntent().getStringExtra("des");
        mdes.setText(des);

        videourl =getIntent().getStringExtra("video");

    }
    public  void jumptovideo(View view){
        Intent intent =new Intent(this,VideoActivity.class);
        intent.putExtra("video",videourl);
        startActivity(intent);
    }
}
